package com.aspose.cells;

class zbec extends zck {
   zbec(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
   }

   void b() {
      float var1 = this.g;
      float var2 = this.h;
      float var3 = this.e.v().h();
      float var4 = this.e.v().i();
      com.aspose.cells.b.a.b.zq var5 = new com.aspose.cells.b.a.b.zq(var1, var2, var3, var4);
      com.aspose.cells.b.a.b.a.zf var6 = this.a.e();
      this.a.a(4);
      com.aspose.cells.b.a.b.zc var7 = zbum.a(this.e.w(), var5);
      com.aspose.cells.b.a.b.zm var8 = zbum.a(this.e.x());
      new com.aspose.cells.b.a.b.a.ze();
      com.aspose.cells.b.a.b.zo[] var10 = new com.aspose.cells.b.a.b.zo[7];
      float var11 = 0.0F;
      if (this.e.m != null) {
         if (this.e.m.a.size() > 0) {
            var11 = var5.i() * com.aspose.cells.b.a.ze.a(this.e.m.a.get(0)) / 100000.0F;
         } else {
            var11 = var5.i() * 0.24F;
         }
      } else {
         var11 = var5.i() * 0.24F;
      }

      com.aspose.cells.b.a.b.a.ze var12;
      com.aspose.cells.b.a.b.a.ze var14;
      if (!this.e.w().a()) {
         if (var11 == 0.0F) {
            this.a.b(var7, var5);
         } else {
            switch(this.e.b) {
            case 1:
               var10[0] = new com.aspose.cells.b.a.b.zo(this.g, var11 + this.h);
               var10[1] = new com.aspose.cells.b.a.b.zo(var11 + this.g, this.h);
               var10[2] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, this.h);
               var10[3] = new com.aspose.cells.b.a.b.zo(var5.h() - var11 + this.g, var11 + this.h);
               var10[4] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, var5.i() - var11 + this.h);
               var10[5] = new com.aspose.cells.b.a.b.zo(var5.h() - var11 + this.g, var5.i() + this.h);
               var10[6] = new com.aspose.cells.b.a.b.zo(this.g, var5.i() + this.h);
               var12 = new com.aspose.cells.b.a.b.a.ze();
               com.aspose.cells.b.a.b.zq var13 = new com.aspose.cells.b.a.b.zq(var1, var2, var3, var11);
               var12.a(var10[0], var10[1]);
               var12.a(var10[1], var10[2]);
               var12.a(var10[2], var10[3]);
               var12.a(var10[3], var10[0]);
               var12.i();
               this.a.a(zbum.a(this.e.w(), var13, 1.0F, 20.0F), var12);
               var14 = new com.aspose.cells.b.a.b.a.ze();
               new com.aspose.cells.b.a.b.zq(var1, var2 + var11, var3, var4 - var11);
               var14.a(var10[0], var10[3]);
               var14.a(var10[3], var10[5]);
               var14.a(var10[5], var10[6]);
               var14.a(var10[6], var10[0]);
               var14.i();
               this.a.a(var7, var14);
               com.aspose.cells.b.a.b.a.ze var16 = new com.aspose.cells.b.a.b.a.ze();
               com.aspose.cells.b.a.b.zq var17 = new com.aspose.cells.b.a.b.zq(var1 + var3 - var11, var2, var11, var4);
               var16.a(var10[3], var10[2]);
               var16.a(var10[2], var10[4]);
               var16.a(var10[4], var10[5]);
               var16.a(var10[5], var10[3]);
               var16.i();
               this.a.a(zbum.a(this.e.w(), var17, 0.8F, 0.0F), var16);
               break;
            case 2:
               var10[0] = new com.aspose.cells.b.a.b.zo(this.g, var5.i() - var11 + this.h);
               var10[1] = new com.aspose.cells.b.a.b.zo(this.g, this.h);
               var10[2] = new com.aspose.cells.b.a.b.zo(var5.h() - var11 + this.g, this.h);
               var10[3] = new com.aspose.cells.b.a.b.zo(var5.h() - var11 + this.g, var5.i() - var11 + this.h);
               var10[4] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, var11 + this.h);
               var10[5] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, var5.i() + this.h);
               var10[6] = new com.aspose.cells.b.a.b.zo(var11 + this.g, var5.i() + this.h);
               com.aspose.cells.b.a.b.a.ze var18 = new com.aspose.cells.b.a.b.a.ze();
               new com.aspose.cells.b.a.b.zq(var1, var2, var3, var11);
               var18.a(var10[0], var10[1]);
               var18.a(var10[1], var10[2]);
               var18.a(var10[2], var10[3]);
               var18.a(var10[3], var10[0]);
               var18.i();
               this.a.a(var7, var18);
               com.aspose.cells.b.a.b.a.ze var20 = new com.aspose.cells.b.a.b.a.ze();
               com.aspose.cells.b.a.b.zq var21 = new com.aspose.cells.b.a.b.zq(var1, var2 + var11, var3, var4 - var11);
               var20.a(var10[3], var10[2]);
               var20.a(var10[2], var10[4]);
               var20.a(var10[4], var10[5]);
               var20.a(var10[5], var10[3]);
               var20.i();
               this.a.a(zbum.a(this.e.w(), var21, 0.8F, 0.0F), var20);
               com.aspose.cells.b.a.b.a.ze var22 = new com.aspose.cells.b.a.b.a.ze();
               com.aspose.cells.b.a.b.zq var23 = new com.aspose.cells.b.a.b.zq(var1 + var3 - var11, var2, var11, var4);
               var22.a(var10[0], var10[3]);
               var22.a(var10[3], var10[5]);
               var22.a(var10[5], var10[6]);
               var22.a(var10[6], var10[0]);
               var22.i();
               this.a.a(zbum.a(this.e.w(), var23, 1.0F, 20.0F), var22);
               break;
            case 3:
               var10[0] = new com.aspose.cells.b.a.b.zo(this.g, var11 + this.h);
               var10[1] = new com.aspose.cells.b.a.b.zo(var11 + this.g, this.h);
               var10[2] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, this.h);
               var10[3] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, var5.i() - var11 + this.h);
               var10[4] = new com.aspose.cells.b.a.b.zo(var11 + this.g, var5.i() - var11 + this.h);
               var10[5] = new com.aspose.cells.b.a.b.zo(this.g, var5.i() + this.h);
               var10[6] = new com.aspose.cells.b.a.b.zo(var5.h() - var11 + this.g, var5.i() + this.h);
               com.aspose.cells.b.a.b.a.ze var24 = new com.aspose.cells.b.a.b.a.ze();
               new com.aspose.cells.b.a.b.zq(var1, var2, var3, var11);
               var24.a(var10[1], var10[2]);
               var24.a(var10[2], var10[3]);
               var24.a(var10[3], var10[4]);
               var24.a(var10[4], var10[1]);
               var24.i();
               this.a.a(var7, var24);
               com.aspose.cells.b.a.b.a.ze var26 = new com.aspose.cells.b.a.b.a.ze();
               com.aspose.cells.b.a.b.zq var27 = new com.aspose.cells.b.a.b.zq(var1, var2, var3, var11);
               var26.a(var10[1], var10[4]);
               var26.a(var10[4], var10[5]);
               var26.a(var10[5], var10[0]);
               var26.a(var10[0], var10[1]);
               var26.i();
               this.a.a(zbum.a(this.e.w(), var27, 0.8F, 0.0F), var26);
               com.aspose.cells.b.a.b.a.ze var28 = new com.aspose.cells.b.a.b.a.ze();
               com.aspose.cells.b.a.b.zq var29 = new com.aspose.cells.b.a.b.zq(var1, var2, var3, var11);
               var28.a(var10[4], var10[5]);
               var28.a(var10[5], var10[6]);
               var28.a(var10[6], var10[3]);
               var28.a(var10[3], var10[4]);
               var28.i();
               this.a.a(zbum.a(this.e.w(), var29, 1.0F, 20.0F), var28);
               break;
            case 4:
               var10[0] = new com.aspose.cells.b.a.b.zo(this.g, this.h);
               var10[1] = new com.aspose.cells.b.a.b.zo(var5.h() - var11 + this.g, this.h);
               var10[2] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, var11 + this.h);
               var10[3] = new com.aspose.cells.b.a.b.zo(var11 + this.g, var11 + this.h);
               var10[4] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, var5.i() + this.h);
               var10[5] = new com.aspose.cells.b.a.b.zo(var11 + this.g, var5.i() + this.h);
               var10[6] = new com.aspose.cells.b.a.b.zo(this.g, var5.i() - var11 + this.h);
               com.aspose.cells.b.a.b.a.ze var30 = new com.aspose.cells.b.a.b.a.ze();
               com.aspose.cells.b.a.b.zq var31 = new com.aspose.cells.b.a.b.zq(var1, var2, var3, var11);
               var30.a(var10[0], var10[1]);
               var30.a(var10[1], var10[2]);
               var30.a(var10[2], var10[3]);
               var30.a(var10[3], var10[0]);
               var30.i();
               this.a.a(zbum.a(this.e.w(), var31, 1.0F, 20.0F), var30);
               com.aspose.cells.b.a.b.a.ze var32 = new com.aspose.cells.b.a.b.a.ze();
               com.aspose.cells.b.a.b.zq var33 = new com.aspose.cells.b.a.b.zq(var1, var2, var3, var11);
               var32.a(var10[3], var10[0]);
               var32.a(var10[0], var10[6]);
               var32.a(var10[6], var10[5]);
               var32.a(var10[5], var10[3]);
               var32.i();
               this.a.a(zbum.a(this.e.w(), var33, 0.8F, 0.0F), var32);
               com.aspose.cells.b.a.b.a.ze var34 = new com.aspose.cells.b.a.b.a.ze();
               new com.aspose.cells.b.a.b.zq(var1, var2, var3, var11);
               var34.a(var10[3], var10[2]);
               var34.a(var10[2], var10[4]);
               var34.a(var10[4], var10[5]);
               var34.a(var10[5], var10[3]);
               var34.i();
               this.a.a(var7, var34);
            }
         }
      }

      if (!this.e.x().a()) {
         if (var11 == 0.0F) {
            this.a.a(var8, (int)var1, (int)var2, (int)var3, (int)var4);
         } else {
            switch(this.e.b) {
            case 1:
               var12 = new com.aspose.cells.b.a.b.a.ze();
               var10[0] = new com.aspose.cells.b.a.b.zo(this.g, var11 + this.h);
               var10[1] = new com.aspose.cells.b.a.b.zo(var11 + this.g, this.h);
               var10[2] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, this.h);
               var10[3] = new com.aspose.cells.b.a.b.zo(var5.h() - var11 + this.g, var11 + this.h);
               var10[4] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, var5.i() - var11 + this.h);
               var10[5] = new com.aspose.cells.b.a.b.zo(var5.h() - var11 + this.g, var5.i() + this.h);
               var10[6] = new com.aspose.cells.b.a.b.zo(this.g, var5.i() + this.h);
               var12.a(var10[0], var10[1]);
               var12.a(var10[1], var10[2]);
               var12.a(var10[2], var10[3]);
               var12.a(var10[3], var10[0]);
               var12.a(var10[0], var10[3]);
               var12.a(var10[3], var10[5]);
               var12.a(var10[5], var10[6]);
               var12.a(var10[6], var10[0]);
               var12.a(var10[3], var10[2]);
               var12.a(var10[2], var10[4]);
               var12.a(var10[4], var10[5]);
               var12.a(var10[5], var10[3]);
               var12.i();
               this.a.a(var8, var12);
               break;
            case 2:
               com.aspose.cells.b.a.b.a.ze var36 = new com.aspose.cells.b.a.b.a.ze();
               var10[0] = new com.aspose.cells.b.a.b.zo(this.g, var5.i() - var11 + this.h);
               var10[1] = new com.aspose.cells.b.a.b.zo(this.g, this.h);
               var10[2] = new com.aspose.cells.b.a.b.zo(var5.h() - var11 + this.g, this.h);
               var10[3] = new com.aspose.cells.b.a.b.zo(var5.h() - var11 + this.g, var5.i() - var11 + this.h);
               var10[4] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, var11 + this.h);
               var10[5] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, var5.i() + this.h);
               var10[6] = new com.aspose.cells.b.a.b.zo(var11 + this.g, var5.i() + this.h);
               var36.a(var10[0], var10[1]);
               var36.a(var10[1], var10[2]);
               var36.a(var10[2], var10[3]);
               var36.a(var10[3], var10[0]);
               var36.a(var10[3], var10[2]);
               var36.a(var10[2], var10[4]);
               var36.a(var10[4], var10[5]);
               var36.a(var10[5], var10[3]);
               var36.a(var10[0], var10[3]);
               var36.a(var10[3], var10[5]);
               var36.a(var10[5], var10[6]);
               var36.a(var10[6], var10[0]);
               var36.i();
               this.a.a(var8, var36);
               break;
            case 3:
               var14 = new com.aspose.cells.b.a.b.a.ze();
               var10[0] = new com.aspose.cells.b.a.b.zo(this.g, var11 + this.h);
               var10[1] = new com.aspose.cells.b.a.b.zo(var11 + this.g, this.h);
               var10[2] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, this.h);
               var10[3] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, var5.i() - var11 + this.h);
               var10[4] = new com.aspose.cells.b.a.b.zo(var11 + this.g, var5.i() - var11 + this.h);
               var10[5] = new com.aspose.cells.b.a.b.zo(this.g, var5.i() + this.h);
               var10[6] = new com.aspose.cells.b.a.b.zo(var5.h() - var11 + this.g, var5.i() + this.h);
               var14.a(var10[1], var10[2]);
               var14.a(var10[2], var10[3]);
               var14.a(var10[3], var10[4]);
               var14.a(var10[4], var10[1]);
               var14.a(var10[1], var10[4]);
               var14.a(var10[4], var10[5]);
               var14.a(var10[5], var10[0]);
               var14.a(var10[0], var10[1]);
               var14.a(var10[4], var10[5]);
               var14.a(var10[5], var10[6]);
               var14.a(var10[6], var10[3]);
               var14.a(var10[3], var10[4]);
               var14.i();
               this.a.a(var8, var14);
               break;
            case 4:
               com.aspose.cells.b.a.b.a.ze var15 = new com.aspose.cells.b.a.b.a.ze();
               var10[0] = new com.aspose.cells.b.a.b.zo(this.g, this.h);
               var10[1] = new com.aspose.cells.b.a.b.zo(var5.h() - var11 + this.g, this.h);
               var10[2] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, var11 + this.h);
               var10[3] = new com.aspose.cells.b.a.b.zo(var11 + this.g, var11 + this.h);
               var10[4] = new com.aspose.cells.b.a.b.zo(var5.h() + this.g, var5.i() + this.h);
               var10[5] = new com.aspose.cells.b.a.b.zo(var11 + this.g, var5.i() + this.h);
               var10[6] = new com.aspose.cells.b.a.b.zo(this.g, var5.i() - var11 + this.h);
               var15.a(var10[0], var10[1]);
               var15.a(var10[1], var10[2]);
               var15.a(var10[2], var10[3]);
               var15.a(var10[3], var10[0]);
               var15.a(var10[3], var10[0]);
               var15.a(var10[0], var10[6]);
               var15.a(var10[6], var10[5]);
               var15.a(var10[5], var10[3]);
               var15.a(var10[3], var10[2]);
               var15.a(var10[2], var10[4]);
               var15.a(var10[4], var10[5]);
               var15.a(var10[5], var10[3]);
               var15.i();
               this.a.a(var8, var15);
            }
         }
      }

      super.a();
      this.a.a(var6);
   }
}
